package cn.wen233.iocdemo.domain.enums;

/**
 * @author wenei
 * @date 2021-06-22 9:51
 */
public enum MotorState {
    ON(true, "a", "开启风扇"),
    OFF(false, "b", "关闭风扇");

    MotorState(boolean state, String command, String message) {
        this.state = state;
        this.command = command;
        this.message = message;
    }

    private boolean state;

    private String command;

    private String message;

    public boolean isState() {
        return state;
    }

    public String getCommand() {
        return command;
    }

    public String getMessage() {
        return message;
    }
}
